package com.main;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.lumlord.common.log.Log;
import com.lumlord.common.log.LogFactory;
import com.lumlord.common.spring.NetBridgeRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration;
import org.springframework.boot.devtools.autoconfigure.DevToolsDataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

/**
 * 项目启动方法
 * @author gpf
 *
 */
/**
 * 项目启动方法
 * @author gpf
 *
 */
@SpringBootApplication(exclude={QuartzAutoConfiguration.class,DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class,DruidDataSourceAutoConfigure.class,EurekaClientAutoConfiguration.class})
@MapperScan(value = "com.lumlord.mapper")
@ComponentScan(basePackages= {"com.lumlord"})
//@EnableEurekaClient
/*@RestController*/
//@EnableCircuitBreaker
//@EnableDiscoveryClient
//@EnableEurekaClient //注册到服务
//@EnableDiscoveryClient
@Import(NetBridgeRegister.class)
public class Application {
	public static Log log = new LogFactory(Application.class);
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info("启动完毕..");
    }
    
   
    
   public static final String PACKAGE ="com.lumlord.mapper";
   
   public static final String DOMAIN_PACKAGE = "com.lumlord.model,com.lumlord.*.domain";
   
   public static final String MAPPER_LOCATION = "classpath*:mybatis/**/*.xml";
    
}
